package com.hq.door.dao.door;

import java.util.List;

public interface IBaseHibernateDAO<T> {
	public void save(T entity) ;
	public void update(T entity);
	public void delete(T entity);
	public void saveOrUpdate(T entity);
	public T get(double id);
	public <T>  List<T> find(String hql,Object[] values);
	public <T> List<T> queryList(final String hql,final Object... conditions);
	public T queryOne(final String hql,final Object... conditions);
	public int getCount(final String hql,final Object... conditions);
	public <T> List<T> findPageObjects(final String hql, final int pageStart, 
			final int pageSize ,final Object... conditions) ;
	public <T> List<T> querySQlList(final String hql, final Object... conditions);
}